import { create } from "zustand";
import { immer } from "zustand/middleware/immer";

export type Theme = "light" | "dark";
export interface GlobalStore {
    theme: Theme;
    setTheme: (theme:Theme) => void;
}
const useGlobalStore = create<GlobalStore>((set)=>({
    theme: "light" as Theme,
    setTheme:(theme)=>set({theme:theme})
}))
export default useGlobalStore;
